export default {
    namespaced: true,
    state: {
        gnum: 138,
    },
    getters: {
        totalNum(state) {
           return state.gnum*100
        }
    },
    mutations: {
        gaddNum(state,num){
            state.gnum+=num
        }
    },
    actions: {
        gaddNum2(context){
            console.log('哈，我被touch了');
            setTimeout(() => {
                context.commit('gaddNum',10)
            }, 1000);
        }
    },
    modules: {

    }


}